package com.atguigu.spzx.product.service;

import com.atguigu.spzx.model.dto.api.ApiProductSearchDTO;
import com.atguigu.spzx.model.entity.product.Category;
import com.atguigu.spzx.model.entity.product.Product;
import com.atguigu.spzx.model.entity.product.ProductSku;
import com.atguigu.spzx.model.vo.product.ProductItemVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author LT
 * @create 2024-03-25-18:09
 */

public interface ProductService extends IService<Product> {
    Map<String, Object> loadData();


    PageInfo<ProductSku> list(Integer pageNum, Integer pageSize, ApiProductSearchDTO apiProductSearchDTO);

    ProductItemVO getItemBySkuId(Long skuId);

    ProductSku getBySkuId(Long skuId);

}
